package edu.seu.mart.dao.impl;



import edu.seu.mart.dao.IknowledgeDao;
import edu.seu.mart.dao.BaseDao;
import edu.seu.mart.entity.Pager;
import edu.seu.mart.model.Knowledge;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by asus on 2015/3/20.
 */
@Repository
public class KnowledgeDao extends BaseDao<Knowledge> implements IknowledgeDao {

    public List<Knowledge> findAllKnowledge(){

        return  this.list("from Knowledge");
    }

    @Override
    public Pager<Knowledge> findAllPagerKnowledge() {
        return this.find("from Knowledge");
    }

}
